<?php

namespace app\api\controller;

use app\api\logic\UserHelpLogic;
use app\basic\ApiController;
use hg\apidoc\annotation as Apidoc;

/**
 * @Apidoc\Title("帮助中心")
 */
class HelpController extends ApiController
{
    /**
     * 构造函数
     */
    public function __construct()
    {
        $this->logic = new UserHelpLogic();
        parent::__construct();
    }

    /**
     * @Apidoc\Title("获取帮助列表")
     * @Apidoc\Method("POST")
     * @Apidoc\Returned("data", type="array", desc="帮助列表", children={
     *     @Apidoc\Returned("title", type="string", desc="帮助标题"),
     *     @Apidoc\Returned("content", type="string", desc="帮助内容")
     * })
     */
    public function getList()
    {
        $list = $this->logic->getHelpList();
        return $this->success($list);
    }
} 